package nc.bs.arap.bx;

import nc.bs.dao.BaseDAO;
import nc.bs.dao.DAOException;
import nc.vo.bd.b09.CustCombinExec;
import nc.vo.pub.BusinessRuntimeException;

/**
 * @author twei
 *
 */
public class ErmCustCombine implements CustCombinExec {

	public void combin_GYS(String arg0, String arg1) throws Exception {
	}

	public void combin_KH(String arg0, String arg1) throws Exception {
	}

	public void combin_KS(String[] arg0, String[] arg1) throws Exception {
	}

	public void setBasdocKey(String origCus, String desCus) {
		BaseDAO baseDAO = new BaseDAO();
		try {
			baseDAO.executeUpdate("update er_bxzb set hbbm='"+desCus+"' where hbbm='"+origCus+"'");
			baseDAO.executeUpdate("update er_jkzb set hbbm='"+desCus+"' where hbbm='"+origCus+"'");
		} catch (DAOException e) {
			throw new BusinessRuntimeException(e.getMessage(),e);
		}
	}
}
